import request from '@/utils/request'

//奖品
/**
 * 获取奖品列表
 * @param {page,limit,keywords,class_id,price} data 
 * @returns 
 */

export function boxRewardList(data) {
    return request({
        url: '/admin/box/prize/prizeList',
        method: 'post',
        data
    })
}

export function addBoxReward(data) {
    return request({
        url: '/admin/box/prize/addPrize',
        method: 'post',
        data
    })
}

export function editBoxReward(data) {
    return request({
        url: '/admin/box/prize/editPrize',
        method: 'post',
        data
    })
}

export function delBoxReward(data) {
    return request({
        url: '/admin/box/prize/delPrize',
        method: 'post',
        data
    })
}
//奖品分类
/**
 * 获取奖品分类列表
 * @param {page,limit,keywords} data 
 * @returns 
 */

export function boxRewardTypeList(data) {
    return request({
        url: '/admin/box/prizeclass/prizeClassList',
        method: 'post',
        data
    })
}

export function addBoxRewardType(data) {
    return request({
        url: '/admin/box/prizeclass/addPrizeClass',
        method: 'post',
        data
    })
}

export function editBoxRewardType(data) {
    return request({
        url: '/admin/box/prizeclass/editPrizeClass',
        method: 'post',
        data
    })
}

export function delBoxRewardType(data) {
    return request({
        url: '/admin/box/prizeclass/delPrizeClass',
        method: 'post',
        data
    })
}